package com.ldy.gen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author ldy
 * @since 2023-09-29 15:02:29
 */
@Getter
@Setter
@TableName("content_comment")
@ApiModel(value = "ContentComment对象", description = "评论表")
public class ContentComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("用户名字")
    @TableField("username")
    private String username;

    @ApiModelProperty("商品/服务ID")
    @TableField("content_id")
    private Long contentId;

    @ApiModelProperty("评论类型，5=5颗星，4=4颗星，3=3颗星，2=2颗星，1=1颗星")
    @TableField("type")
    private Boolean type;

    @ApiModelProperty("评论内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("图片数组")
    @TableField("img_urls")
    private String imgUrls;

    @ApiModelProperty("审核状态，0=未审核，1=审核通过，2=拒绝审核")
    @TableField("check_state")
    private Boolean checkState;

    @ApiModelProperty("数据创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("数据最后修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("数据创建者")
    @TableField("creator")
    private String creator;

    @ApiModelProperty("数据更新者")
    @TableField("updater")
    private String updater;


}
